ChatbotPageContent

fun ChatbotPageContent(modifier: Modifier = Modifier, viewModel: ChatbotViewModel = viewModel(), onNavigateToChatList: () -> Unit)

Composable function for displaying the content of the Chatbot page. It handles the layout of messages between the user and the bot, along with the display of branch selection buttons and message input. It relies on additional composables such as UserMessageItem and BotMessageItem.

The function also manages the automatic scroll to the latest message, updates based on the current branch, and handles message sending and date selection for specific branches.

Parameters

modifier

The modifier to be applied to the ChatbotPageContent.

viewModel

The ViewModel that provides the data and logic for the chatbot.

onNavigateToChatList

Lambda function for navigating to the chat list.